package com.itheima.service;

import com.itheima.entity.Result;
import com.itheima.pojo.Order;

import java.util.List;
import java.util.Map;

public interface OrderService {
    public Result order(Map map) throws Exception;
    public Map findById(Integer id) throws Exception;
    // 根据订单id查询订单详情返回map为用户的历史订单使用
    public Map<String,Object> findOrderDetail4MemberHisById(Integer id);

    List<Integer> findOrderCountByDate(List<String> datelist);

    List<Integer> findVisitsCountByDate(List<String> datelist);

    Order findOrderById(Integer id);
}
